<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>shou ye</title>
<%-- <script type="text/javascript" src="<%=path%>/js/socket.io.js"></script> --%>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.3/socket.io.js"></script>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<body>

	<form action="action/submit" method="post">
		<input type="text" name="username"> <input type="text" name="password"> <input type="checkbox"
			name="like" value="唱歌">唱歌 <input type="checkbox" name="like" value="跳舞">跳舞 <input type="checkbox"
			name="like" value="打球">打球 <input type="submit" value="提交" name="提交">
	</form>

	<script type="text/javascript">
		var socket = io.connect('http://localhost:8888');
			socket.on('appLocation', function(data) {
			console.log("appLocation: " + data);
		});
	</script>


</body>
</html>